package jpa.entitys.promis.construction;

import java.io.Serializable;

import javax.persistence.*;

import java.math.BigDecimal;
import java.util.Date;

import jpa.entitys.common.CommonEntity;


/**
 * The persistent class for the VW_SYNC_GP_ITEMS database table.
 * 
 */
@Entity
@Table(name="VW_SYNC_GP_ITEMS")
@NamedQueries({
    @NamedQuery(name = "VwSyncGpItem.findAll", query = " SELECT c FROM VwSyncGpItem c "),
    @NamedQuery(name = "VwSyncGpItem.findById", query = " SELECT c FROM VwSyncGpItem c WHERE c.gpDetailId = :Id "),
    @NamedQuery(name = "VwSyncGpItem.findByPRStatus", query = " SELECT c FROM VwSyncGpItem c WHERE c.status = :status And c.syncIsstaging = :syncIsstaging "),
    @NamedQuery(name = "VwSyncGpItem.findByDocumentNo", query = " SELECT c FROM VwSyncGpItem c WHERE c.company = :company  And  c.project = :project And c.documentNo = :documentNo And c.status = :status And c.syncIsstaging = :syncIsstaging "),
    @NamedQuery(name = "VwSyncGpItem.findByDocumentNo1", query = " SELECT c FROM VwSyncGpItem c WHERE c.company = :company  And  c.project = :project And c.documentNo = :documentNo And c.status = :status ")
})
public class VwSyncGpItem extends CommonEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	
	@Id
	@Column(name="GP_DETAIL_ID")
	private String gpDetailId;

	@Override public String toString() { return org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(this);}
	
	@Column(name="BUILDING_PHASE")
	private String buildingPhase;

	private String company;

	@Column(name="COMPANY_NAME")
	private String companyName;

	@Column(name="CREATED_BY")
	private String createdBy;

	@Column(name="CREATED_BY_NAME")
	private String createdByName;
	
	@Column(name="PROJECT")
	private String project;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="CREATED_ON")
	private Date createdOn;

	private String currency;

	@Column(name="DOCUMENT_NO")
	private String documentNo;

	@Column(name="EXCHANGE_RATE")
	private BigDecimal exchangeRate;

	@Column(name="EXTERNAL_PO_LINE_ITEM")
	private BigDecimal externalPoLineItem;

	@Column(name="EXTERNAL_PO_NO")
	private String externalPoNo;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="GP_DATE")
	private Date gpDate;	

	@Column(name="GP_HEADER_ID")
	private String gpHeaderId;

	@Column(name="GP_NO")
	private BigDecimal gpNo;

	@Column(name="GP_SERIES")
	private String gpSeries;

	@Column(name="GP_TYPE")
	private String gpType;

	@Column(name="ITEM_CODE")
	private String itemCode;

	@Column(name="ITEM_DESC")
	private String itemDesc;

	@Column(name="ITEM_UM")
	private String itemUm;

	@Column(name="ITEM_UM_QTY")
	private BigDecimal itemUmQty;

	@Column(name="LAST_UPD_BY")
	private String lastUpdBy;

	@Column(name="LAST_UPD_BY_NAME")
	private String lastUpdByName;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="LAST_UPD_ON")
	private Date lastUpdOn;

	@Column(name="LINE_NO")
	private BigDecimal lineNo;

	@Column(name="PO_NO")
	private BigDecimal poNo;

	@Column(name="PO_SEQ")
	private BigDecimal poSeq;

	@Column(name="PO_SERIES")
	private String poSeries;

	@Column(name="PO_TYPE")
	private String poType;

	@Column(name="PREPARED_BY")
	private String preparedBy;

	@Column(name="PREPARED_BY_NAME")
	private String preparedByName;

	@Column(name="PROJECT_NAME")
	private String projectName;

	@Column(name="REF_PO_DOCUMENT_NO")
	private String refPoDocumentNo;

	@Column(name="REMARKS_D")
	private String remarksD;

	@Column(name="REMARKS_H")
	private String remarksH;

	@Column(name="SAP_COMPANY_CODE")
	private String sapCompanyCode;

	@Column(name="SAP_PLANT_CODE")
	private String sapPlantCode;

	private String status;

	@Column(name="SYNC_CREATEDBY")
	private String syncCreatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_CREATEDON")
	private Date syncCreatedon;

	@Column(name="SYNC_DETAIL_ID")
	private String syncDetailId;

	@Column(name="SYNC_EXTERNAL_REF_KEY")
	private String syncExternalRefKey;

	@Column(name="SYNC_EXTERNAL_REF_NO")
	private String syncExternalRefNo;

	@Column(name="SYNC_ISSTAGING")
	private String syncIsstaging;

	@Column(name="SYNC_ISSYNC")
	private String syncIssync;

	@Column(name="SYNC_UPDATEDBY")
	private String syncUpdatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_UPDATEDON")
	private Date syncUpdatedon;

	@Column(name="UNIT_NUMBER")
	private String unitNumber;

	@Column(name="ZONE_CODE")
	private String zoneCode;

    /**
	 * @return the project
	 */
	public String getProject() {
		return project;
	}

	/**
	 * @param project the project to set
	 */
	public void setProject(String project) {
		this.project = project;
	}

	public VwSyncGpItem() {
    }

	public String getBuildingPhase() {
		return this.buildingPhase;
	}

	public void setBuildingPhase(String buildingPhase) {
		this.buildingPhase = buildingPhase;
	}

	public String getCompany() {
		return this.company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getCompanyName() {
		return this.companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public String getCreatedByName() {
		return this.createdByName;
	}

	public void setCreatedByName(String createdByName) {
		this.createdByName = createdByName;
	}

	public Date getCreatedOn() {
		return this.createdOn;
	}

	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}

	public String getCurrency() {
		return this.currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}

	public String getDocumentNo() {
		return this.documentNo;
	}

	public void setDocumentNo(String documentNo) {
		this.documentNo = documentNo;
	}

	public BigDecimal getExchangeRate() {
		return this.exchangeRate;
	}

	public void setExchangeRate(BigDecimal exchangeRate) {
		this.exchangeRate = exchangeRate;
	}

	public BigDecimal getExternalPoLineItem() {
		return this.externalPoLineItem;
	}

	public void setExternalPoLineItem(BigDecimal externalPoLineItem) {
		this.externalPoLineItem = externalPoLineItem;
	}

	public String getExternalPoNo() {
		return this.externalPoNo;
	}

	public void setExternalPoNo(String externalPoNo) {
		this.externalPoNo = externalPoNo;
	}

	public Date getGpDate() {
		return this.gpDate;
	}

	public void setGpDate(Date gpDate) {
		this.gpDate = gpDate;
	}

	public String getGpDetailId() {
		return this.gpDetailId;
	}

	public void setGpDetailId(String gpDetailId) {
		this.gpDetailId = gpDetailId;
	}

	public String getGpHeaderId() {
		return this.gpHeaderId;
	}

	public void setGpHeaderId(String gpHeaderId) {
		this.gpHeaderId = gpHeaderId;
	}

	public BigDecimal getGpNo() {
		return this.gpNo;
	}

	public void setGpNo(BigDecimal gpNo) {
		this.gpNo = gpNo;
	}

	public String getGpSeries() {
		return this.gpSeries;
	}

	public void setGpSeries(String gpSeries) {
		this.gpSeries = gpSeries;
	}

	public String getGpType() {
		return this.gpType;
	}

	public void setGpType(String gpType) {
		this.gpType = gpType;
	}

	public String getItemCode() {
		return this.itemCode;
	}

	public void setItemCode(String itemCode) {
		this.itemCode = itemCode;
	}

	public String getItemDesc() {
		return this.itemDesc;
	}

	public void setItemDesc(String itemDesc) {
		this.itemDesc = itemDesc;
	}

	public String getItemUm() {
		return this.itemUm;
	}

	public void setItemUm(String itemUm) {
		this.itemUm = itemUm;
	}

	public BigDecimal getItemUmQty() {
		return this.itemUmQty;
	}

	public void setItemUmQty(BigDecimal itemUmQty) {
		this.itemUmQty = itemUmQty;
	}

	public String getLastUpdBy() {
		return this.lastUpdBy;
	}

	public void setLastUpdBy(String lastUpdBy) {
		this.lastUpdBy = lastUpdBy;
	}

	public String getLastUpdByName() {
		return this.lastUpdByName;
	}

	public void setLastUpdByName(String lastUpdByName) {
		this.lastUpdByName = lastUpdByName;
	}

	public Date getLastUpdOn() {
		return this.lastUpdOn;
	}

	public void setLastUpdOn(Date lastUpdOn) {
		this.lastUpdOn = lastUpdOn;
	}

	public BigDecimal getLineNo() {
		return this.lineNo;
	}

	public void setLineNo(BigDecimal lineNo) {
		this.lineNo = lineNo;
	}

	public BigDecimal getPoNo() {
		return this.poNo;
	}

	public void setPoNo(BigDecimal poNo) {
		this.poNo = poNo;
	}

	public BigDecimal getPoSeq() {
		return this.poSeq;
	}

	public void setPoSeq(BigDecimal poSeq) {
		this.poSeq = poSeq;
	}

	public String getPoSeries() {
		return this.poSeries;
	}

	public void setPoSeries(String poSeries) {
		this.poSeries = poSeries;
	}

	public String getPoType() {
		return this.poType;
	}

	public void setPoType(String poType) {
		this.poType = poType;
	}

	public String getPreparedBy() {
		return this.preparedBy;
	}

	public void setPreparedBy(String preparedBy) {
		this.preparedBy = preparedBy;
	}

	public String getPreparedByName() {
		return this.preparedByName;
	}

	public void setPreparedByName(String preparedByName) {
		this.preparedByName = preparedByName;
	}

	public String getProjectName() {
		return this.projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public String getRefPoDocumentNo() {
		return this.refPoDocumentNo;
	}

	public void setRefPoDocumentNo(String refPoDocumentNo) {
		this.refPoDocumentNo = refPoDocumentNo;
	}

	public String getRemarksD() {
		return this.remarksD;
	}

	public void setRemarksD(String remarksD) {
		this.remarksD = remarksD;
	}

	public String getRemarksH() {
		return this.remarksH;
	}

	public void setRemarksH(String remarksH) {
		this.remarksH = remarksH;
	}

	public String getSapCompanyCode() {
		return this.sapCompanyCode;
	}

	public void setSapCompanyCode(String sapCompanyCode) {
		this.sapCompanyCode = sapCompanyCode;
	}

	public String getSapPlantCode() {
		return this.sapPlantCode;
	}

	public void setSapPlantCode(String sapPlantCode) {
		this.sapPlantCode = sapPlantCode;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getSyncCreatedby() {
		return this.syncCreatedby;
	}

	public void setSyncCreatedby(String syncCreatedby) {
		this.syncCreatedby = syncCreatedby;
	}

	public Date getSyncCreatedon() {
		return this.syncCreatedon;
	}

	public void setSyncCreatedon(Date syncCreatedon) {
		this.syncCreatedon = syncCreatedon;
	}

	public String getSyncDetailId() {
		return this.syncDetailId;
	}

	public void setSyncDetailId(String syncDetailId) {
		this.syncDetailId = syncDetailId;
	}

	public String getSyncExternalRefKey() {
		return this.syncExternalRefKey;
	}

	public void setSyncExternalRefKey(String syncExternalRefKey) {
		this.syncExternalRefKey = syncExternalRefKey;
	}

	public String getSyncExternalRefNo() {
		return this.syncExternalRefNo;
	}

	public void setSyncExternalRefNo(String syncExternalRefNo) {
		this.syncExternalRefNo = syncExternalRefNo;
	}

	public String getSyncIsstaging() {
		return this.syncIsstaging;
	}

	public void setSyncIsstaging(String syncIsstaging) {
		this.syncIsstaging = syncIsstaging;
	}

	public String getSyncIssync() {
		return this.syncIssync;
	}

	public void setSyncIssync(String syncIssync) {
		this.syncIssync = syncIssync;
	}

	public String getSyncUpdatedby() {
		return this.syncUpdatedby;
	}

	public void setSyncUpdatedby(String syncUpdatedby) {
		this.syncUpdatedby = syncUpdatedby;
	}

	public Date getSyncUpdatedon() {
		return this.syncUpdatedon;
	}

	public void setSyncUpdatedon(Date syncUpdatedon) {
		this.syncUpdatedon = syncUpdatedon;
	}

	public String getUnitNumber() {
		return this.unitNumber;
	}

	public void setUnitNumber(String unitNumber) {
		this.unitNumber = unitNumber;
	}

	public String getZoneCode() {
		return this.zoneCode;
	}

	public void setZoneCode(String zoneCode) {
		this.zoneCode = zoneCode;
	}

}